package com.zhangtai.modules.service.salary;


import com.zhangtai.modules.entity.salary.SalaryBandEntity;
import com.zhangtai.utils.PageResult;
import com.zhangtai.utils.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import java.math.BigDecimal;
import java.util.List;


/**
 * 
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2020-06-28 20:46:06
 */
@Api(tags = "产品接口")
public interface SalaryBandService {

    @GetMapping("/findSalaryBandList")
    @ApiOperation(value = "分页查询")
    PageResult queryPage(@RequestParam(value = "orgSystemId", required = false) Long systemId,
                         @RequestParam(value = "orgLineId", required = false) Long lineId,
                         @RequestParam(value = "jobLevelId", required = false) Long jobLevelId,
                         @RequestParam(value = "orgIds", required = false) List<Long> orgIds,
                         @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
                         @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize);



    @ApiOperation(value = "根据id查找")
    SalaryBandEntity getByIdE(@RequestParam("id") Long id);

    @PostMapping("/saveSalaryBand")
    @ApiOperation(value = "保存")
    R saveE(@RequestBody SalaryBandEntity entity);

    @PostMapping("/updateSalaryBand")
    @ApiOperation(value = "修改")
    R updateByIdE(@RequestBody SalaryBandEntity entity);

    @GetMapping("/deleteOneSalaryBand")
    @ApiOperation(value = "根据ID删除")
    R removeOneById(@RequestParam("id") Long id);

    @PostMapping("/deleteSalaryBands")
    @ApiOperation(value = "根据ID集合删除")
    R removeByIdsE(@RequestBody List<Long> ids);

    @GetMapping("/infoSalaryBand")
    BigDecimal findByParam(@RequestParam("jobSystemId") Long jobSystemId, @RequestParam("lineId") Long lineId,
                            @RequestParam("jobLevelId") Long jobLevelId);


}

